home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Graphics Programming (2nd Edition)
/
Visual Basic Graphics Programming 2nd Edition.iso
/
OldSrc
/
CH1
/
SRC
/
RIGHT.FRM
< prev
next >
Wrap
Text File
|
1996-01-04
|
2KB
|
68 lines
VERSION 4.00
Begin VB.Form RightForm
AutoRedraw = -1 'True
BackColor = &H00FFFFFF&
BorderStyle = 3 'Fixed Dialog
Caption = "Right"
ClientHeight = 1185
ClientLeft = 4590
ClientTop = 2325
ClientWidth = 1695
Height = 1875
Left = 4530
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1185
ScaleWidth = 1695
ShowInTaskbar = 0 'False
Top = 1695
Width = 1815
Begin VB.Menu mnuFile
Caption = "&File"
Begin VB.Menu mnuFileExit
Caption = "E&xit"
End
End
End
Attribute VB_Name = "RightForm"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
' ***********************************************
' Make the form's interior area 3 inches square.
' ***********************************************
Private Sub Form_Load()
Dim extra_wid As Single
Dim extra_hgt As Single
Dim i As Single
extra_wid = Width - ScaleWidth
extra_hgt = Height - ScaleHeight
Me.Width = 1440 + extra_wid
Me.Height = 1440 + extra_hgt
Scale (0, 100)-(100, 0)
For i = 10 To 90 Step 10
Line (0, i)-(100, i)
Line (i, 0)-(i, 100)
Next i
End Sub
Private Sub Form_Unload(Cancel As Integer)
If Not WrongForm Is Nothing Then _
Unload WrongForm
End Sub
Private Sub mnuFileExit_Click()
Unload Me
End Sub